<!DOCTYPE html>
<!-- saved from url=(0044)http://1618.com/Home/Center/bankAccount.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人中心</title>

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<include file="./Public/public/public.html" />

<script>
$(document).ready(function(){

    //点击银行账户
    $('[action="changeBank"]').click(function(){
        $('[popup="changeBank"]').reveal();
    });

    //点击确认
    $('[action="confirm"]').click(function(){
        $(this).parents('form').Qsubmit();
    });
});
</script>

</head>
<body>
<!--pc头部-->
<include file="./Public/public/top.html" />
<!--pc头部结束-->
<div class="layout-wrap">
    <!--已审核-->
    <div class="layout">
      <include file="./Public/public/centerLeft.html" />
<!--  修改银行账户 -->
<div popup="changeBank" class="reveal-modal medium">
    <a class="close-reveal-modal" action="closeModal">×</a>
    <h3 id="popupTitle">绑定银行账户</h3>
    <div>
    <form method="post" action="{:U('BankAccount/saveBankAccount')}">
    <div class="form-row form-row-s mt20">
        <div class="input-name w30" id="fieldName">选择银行</div>
        <div class="input-box w65">
        <select name="bankname"> 
	        <option value="中国工商银行">中国工商银行</option>
	        <option value="中国农业银行">中国农业银行</option>
	        <option value="中国建设银行">中国建设银行</option>
	        <option value="中国银行">中国银行</option>
	        <option value="中国邮政储蓄银行">中国邮政储蓄银行</option>
	        <option value="招商银行">招商银行</option>
	        <option value="浦发银行">浦发银行</option>
	        <option value="中信银行">中信银行</option>
	        <option value="交通银行">交通银行</option>
	        <option value="广发银行">广发银行</option>
	        <option value="渤海银行">渤海银行</option>
	        <option value="江苏银行">江苏银行</option>
	        <option value="华夏银行">华夏银行</option>
	        <option value="中国光大银行">中国光大银行</option>
	        <option value="广东农村信用社">广东农村信用社</option>
	        <option value="平安银行">平安银行</option>
	        <option value="上海农商银行">上海农商银行</option>
	        <option value="北京银行">北京银行</option>
	        <option value="中国民生银行">中国民生银行</option>
	        <option value="宁波银行">宁波银行</option>
	        <option value="广州银行">广州银行</option>
	        <option value="南京银行">南京银行</option>
	        <option value="温州银行">温州银行</option>
        </select> 
        </div>
        <div class="clr"></div>
    </div>

    <div class="form-row form-row-s ">
        <div class="input-name w30" id="fieldName">完整支行名称</div>
        <div class="input-box w65">
        <input type="text" class="input-s" name="fullname" 
        maxlength="30" placeholder="完整支行名称,包含省市" 
        valid="{'required':true,'chinese':true,'minLength':4}" 
        msg="{'required':'请填写完整支行名称','chinese':'请填写中文支行名称','minLength':'请填写4个字符以上完整支行名称'}" value="">
        </div>
        <div class="clr"></div>
    </div>


    <div class="form-row form-row-s">
        <div class="input-name w30" id="fieldName">开户人</div>
        <div class="input-box w65">
        <input type="text" class="input-s" maxlength="20" placeholder="开户人" name="username"
         valid="{'required':true}" msg="{'required':'请填写开户人'}" value="{$user.username}">
        </div>
        <div class="clr"></div>
    </div>

    <div class="form-row form-row-s">
        <div class="input-name w30" id="fieldName">账户</div>
        <div class="input-box w65">
        <input type="text" class="input-s" name="bankcode" 
        maxlength="19" placeholder="银行卡号" valid="{'required':true}" 
        msg="{'required':'请填写银行卡号'}" id="bankcard">
        </div>
        <div class="clr"></div>
    </div>
        <div class="split-dot mb20 mt20 text-center"></div>
    <div class="form-row form-row-s">
        <input type="button" action="confirm" class=" button button-blue w45 fl" value="确认">
        <input type="button" action="cancel" class=" button button-gray w45 fr" value="取消">
        <div class="clr"></div>
    </div>
    </form>
    </div>
</div>
        <div class="right" style="min-height: 882px;">
                <h3>收款账户</h3>
                <div class="cnt-tips">
                  <p>温馨提示：开户人必须为您本人，银行卡绑定后，如需修改请联系客服,或加客服群5757918</p>
                </div>
                <div class="split-dot mt10 mb10"></div>
                <div class="row">
	                <if condition="$count eq 0">
	                	<div class="key w55">
		                  	<i class="fa fa-plus-square"></i>银行卡
		                  </div>
		                  <div class="value w30">
		                  	<a action="changeBank">添加</a>
		                  </div>
					<else/>
						<div class="key w55">
		                  	<i class="fa fa-credit-card-alt"></i>收款银行：{$bank.bankname} {$code}
		                  </div>
	                  <div class="value w30">
	                  	<a class="locked">已绑定</a>
	                  </div>					
	                </if>
                </div>
        </div>
        <div class="clr"></div>
    </div>
</div>
<include file="./Public/public/footer.html" />

</body></html>